<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="消息" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
</head>
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doInit(){
		document.getElementById("rightDiv").style.width=(document.getElementById("mainDiv").clientWidth-document.getElementById("leftDiv").offsetWidth)+"px";
		var defaultUrl="${defaultUrl}";
		var url="/message/MessageList.ihtm?type=IN";
		if(defaultUrl!=""){
			url=defaultUrl;
		}
		document.getElementById("mainFrame").src=url;
	}
	function openNode(type){
		if(type=="IN"){
			document.getElementById("in_li").className="coll-mail current";
			document.getElementById("out_li").className="send-mail";
		}else{
			document.getElementById("in_li").className="coll-mail";
			document.getElementById("out_li").className="send-mail current";
		}
	}
	function doNodeClick(type){
		document.getElementById("mainFrame").src="/message/MessageList.ihtm?type="+type;
	}
	//子窗口调用
	function doDelMsg(id,type){
		if(popRetVal!=null){
			var url="/message/MessageDelete.ihtm?type="+type+"&id="+id;
			ShowIframe("请稍候...",url,200,200,"doDelMsgCallBack();");
		}
	}
	function doDelMsgCallBack(){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.refreshWin();
		}
	}
	function selectStafferNameCallBack(objId,checkObjId){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.selectStafferNameAct(objId,checkObjId,popRetVal);
		}
	}
	function doReadFlag(str){
		if(popRetVal!=null){
			var url="/MessageReadFlagUpdate.ihtm?id="+str;
			ShowIframe("请稍候...",url,200,200,"doReadFlagCallBack();");
		}
	}
	function doReadFlagCallBack(){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.refreshWin();
		}
	}
	function selectReceiverCallBack(){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.selectReceiverAct(popRetVal);
		}
	}
	function doDelAcc(id){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.doItemDeleteAct(id);
		}
	}
	function showAddedAcc(){
		if(popRetVal!=null){
			document.getElementById("mainFrame").contentWindow.showAddedAccAct(popRetVal[0],popRetVal[1]);
		}
	}
</script>
<body oncontextmenu="return false" onLoad="doInit();" class="sheet" style="text-align:center;">
<div class="sheet-main" style="width:950px; text-align:left;margin:auto;">
  <div class="sheet-top">
    <div class="content">
      <h2>消息</h2>
      <p>消息是公司内部电子邮件，可以发送消息给指定人员，与公告不同的是，公告是所有人员都可以看到，而消息只有收件人才能看到</p>
    </div>
  </div>

  <div class="sheet-list" id="mainDiv" style="height:468px;">
	<div class="nav" id="leftDiv" style="float:left;height:100%;">
		<h3 class="title">菜单</h3>
		<div class="nav-link nav-mail">
			<ul style="height:420px;">
			<li class="coll-mail current" id="in_li"><a style="cursor:pointer" onClick="doNodeClick('IN');">收件箱</a></li>
			<li class="send-mail" id="out_li"><a style="cursor:pointer" onClick="doNodeClick('OUT');">已发送消息</a></li>
			</ul>
		</div>
	</div>
    <div id="rightDiv" style="float:left;height:100%;">
		<iframe width="100%" height="100%" frameborder="0" scrolling="no" id="mainFrame" src=""></iframe>
    </div>
</div>
</body>
</html>




